package com.dianmi.seckill.service;

import com.dianmi.seckill.entity.ProductStockFlag;

import java.util.List;

/**
 * @author xieqiaofu
 * @date 2021/4/2
 */
public interface StockCoordinate {

    boolean createBaseNode();

    boolean register(Long productId, Long ttl);

    void listen(Callback callback);

    void update(Long productId, boolean hasStock);

    List<ProductStockFlag> getProductStockFlag();
}
